package com.vcourse.cloud.sms.api.feign.fallback;

import com.vcourse.cloud.sms.api.feign.SmsService;
import com.vcourse.commons.result.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author Zengsh123
 * @date 2020-06-08 20:37
 * SMS服务降级方法
 */
@Service
@Slf4j
public class SmsServiceFallBack implements SmsService {
    @Override
    public R getCode(String mobile) {
        log.error("SMS服务降级");
        return R.error();
    }
}
